package ink.lovejinhu.leetcode;

/**
 * @author jinhu
 * created 2021-07-17 18:42
 */
public class Solution_0461 {
    /**
     * 汉明距离
     *
     * @param x
     * @param y
     * @return
     */
    public int hammingDistance(int x, int y) {
        return Integer.bitCount(x ^ y);
    }
}
